package com.wanmait.recruit.mapper;

import com.wanmait.recruit.pojo.Position;
import com.wanmait.recruit.pojo.PositionType;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

public interface PositionTypeMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(PositionType record);

    int insertSelective(PositionType record);

    PositionType selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PositionType record);

    int updateByPrimaryKey(PositionType record);

    List<PositionType> findAllByPositionTypeName(@Param("typeName") String typeName,@Param("typeId") Integer typeId);

    PositionType findByName(String typeName);

    int deleteById(Integer id);

    List<PositionType> findAll();

    List<PositionType> findByIndustryId(Integer industryId);

    ArrayList<PositionType> findAll2();

    List<PositionType> findAllAndPositions();

    List<PositionType> findAllByIndustryId(@Param("industryId") Integer industryId);

}